let DynamicsData = require("./DynamicsData");

cc.Class({
    extends: cc.Component,

    properties: {

    },

    onLoad() {
        this.pageViewComp = this.node.getComponent(cc.PageView);


    },

    start() {

    },

    update(dt) {

    },

    pageViewClick() {
        this.pageIndex = this.pageViewComp.getCurrentPageIndex();
        DynamicsData.setData("pageIndex", this.pageIndex);
    }
});
